home *** CD-ROM | disk | FTP | other *** search
- Path: news.walrus.com!news
- From: fjordao@walrus.com (Felipe Jordao)
- Newsgroups: comp.lang.c++
- Subject: [Q] Converting dates in MMYY to YYMMDD format
- Date: Thu, 25 Jan 1996 01:36:06 GMT
- Organization: HAC
- Message-ID: <4e6ms8$ad5@walrus2.walrus.com>
- NNTP-Posting-Host: p22.ts1.walrus.com
- X-Newsreader: Forte Free Agent 1.0.82
-
-
- Hi,
-
- I have a rather clumsy function that converts a character string in
- MMYY format, (such as 1195 for November 1995) into a long DDMMYY
- format, where DD is always the last day of the month. Hence "1282"
- would be converted into 821231 (a long).
-
- Does anyone know a quick way of doing this (around 10-20 lines of
- code)?
-
- Felipe
-
-